export const groupTableOption = {
  dialogClickModal: false,
  dialogWidth: "30%",
  dialogMenuPosition: 'center',
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuWidth: 200,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  copyBtn: false,
  viewBtn: false,
  align: 'center',
  column: [{
    label: '名称',
    prop: 'label',
    overHidden: true,
    span: 24,
    rules: [{ required: true, message: '填写分组名称', trigger: 'blur' }]
  }, {
    label: '排序',
    prop: 'sort',
    type: 'number',
    value: 1,
    width: 50,
    overHidden: true,
    span: 24,
    rules: [{ required: true, message: '填写排序', trigger: 'blur' }]
  }]
}

export const groupSpecTableOption = {
  dialogClickModal: false,
  dialogWidth: "50%",
  dialogMenuPosition: 'center',
  border: true,
  index: true,
  indexLabel: '序号',
  labelWidth: 150,
  menuWidth: 190,
  stripe: true,
  menuAlign: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  copyBtn: false,
  viewBtn: true,
  align: 'center',
  column: [{
    label: '属性名称',
    prop: 'label',
    overHidden: true,
    rules: [{ required: true, message: '填写分组名称', trigger: 'blur' }]
  }, {
    label: '排序',
    prop: 'sort',
    type: 'number',
    value: 10,
    width: 50,
  }, {
    label: '属性类型',
    prop: 'global',
    type: 'radio',
    border: true,
    value: true,
    width: 70,
    dicData: [{
      label: '全局属性',
      value: true
    }, {
      label: '特殊属性',
      value: false
    }],
    rules: [{ required: true, message: '选择属性类型', trigger: 'blur' }]
  }, {
    label: '全局搜索',
    prop: 'searchAble',
    type: 'radio',
    border: true,
    width: 80,
    value: false,
    hide: true,
    dicData: [{
      label: '是',
      value: true
    }, {
      label: '否',
      value: false
    }],
    rules: [{ required: true, message: '选择是否全局搜索', trigger: 'blur' }]
  }, {
    label: '属性值类型',
    prop: 'numerical',
    type: 'radio',
    border: true,
    value: false,
    width: 85,
    dicData: [{
      label: '数值',
      value: true
    }, {
      label: '字符',
      value: false
    }],
    rules: [{ required: true, message: '选择属性值类型', trigger: 'blur' }]
  }, {
    label: '单位',
    prop: 'unit',
    placeholder: '属性值类型为数值时有单位',
    width: 60,
    hide: true
  }, {
    label: '属性值可选项',
    prop: 'options',
    dataType: 'string',
    component: "avue-array",
    params: {
      type: 'array',
      placeholder: '属性值的可选项',
    },
    hide: true,
    overHidden: true,
    span: 24
  },
  ]
}
